package com.path.planning.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 国家配置实体
 */
@ApiModel(description = "国家配置实体")
@TableName("routing_countries")
public class RoutingCountry {

    @ApiModelProperty(value = "国家代码", required = true)
    private String countryCode;

    @ApiModelProperty(value = "国家名称", required = true)
    private String countryName;

    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "是否激活")
    private Boolean isActive;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    // 构造函数
    public RoutingCountry() {}

    public RoutingCountry(String countryCode, String countryName, String tableName) {
        this.countryCode = countryCode;
        this.countryName = countryName;
        this.tableName = tableName;
        this.isActive = true;
    }

    // Getter和Setter方法
    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "RoutingCountry{" +
                "countryCode='" + countryCode + '\'' +
                ", countryName='" + countryName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", isActive=" + isActive +
                '}';
    }
}
